import { InterFlowerRewardBaseWindow } from "./InterFlowerRewardBaseWindow";
import { ObjCreate } from "../../common/ObjCreate";
import { CharmRewardRenderer } from "./CharmRewardRenderer";
import { DataProvider } from "../../../../../fl/data/DataProvider";
import { GTileList } from "../../../../../com/mui/controls/GTileList";
//class CharmRewardWindow
    
    export  class CharmRewardWindow extends InterFlowerRewardBaseWindow
    {
        constructor()
        {
            super();
            _type = 2;
            this.initList();
            return;
        }

        /* internal  */initList(): void
        {
            this._tilePanel = ObjCreate.createTileList(10, 50, 250, 330, this);
            this._tilePanel.columnWidth = 250;
            this._tilePanel.rowHeight = 80;
            this._tilePanel.setStyle("cellRenderer", CharmRewardRenderer);
            return;
        }

        public updateCharmRewardList(arg1: Array<any>): void
        {
            this._tilePanel.dataProvider = new DataProvider(arg1);
            return;
        }

        /* internal */ /* var */_tilePanel: GTileList;
    }
